package com.example.springboot_demo.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * 
 * @ClassName MarketContrastTemplate 
 * @Description 对比模板
 * @author huangyt@dtinsure.com
 * @version V1.2.1 
 * @since V1.2.1
 * @date 2018年10月22日 下午4:40:09 
 *
 */
@Document(collection = "MarketContrastTemplate")
public class MarketContrastTemplate {
	
	/**
	 * 模板ID
	 */
	@Id
	private String templateId;
	
	/**
	 * 模板名称
	 */
	private String templateName;
	
	/**
	 * 模板图片地址
	 */
	private String templateImagePath;
	
	/**
	 * 无效的模板图片地址
	 */
	private String disableTemplateImagePath;
	
	/**
	 * 模板性别: F 女; M 男
	 */
	private String templateGender;
	
	/**
	 * 默认年龄
	 */
	private Integer templateAge;
	
	/**
	 *温馨提示
	 */
	private String tip;
	
	/**
	 * 温馨提示数组
	 */
	@Transient
	public String[] tips;
	
	/**
	 * 是否展示详版 0:不展示,1:展示
	 */
	private String isDesc;
	
	/**
	 * 0-下架;1-上架;2-删除
	 */
	private String templateState;
	
	/**
	 * 模板顺序
	 */
	private Integer templateOrder;
	
	/**
	 * 销售方式 1-保额算保费 2-保费算保额 3-按档次销售
	 */
	private String clacType;

	/**
	 * 算费单位: 1-元;2-万元
	 */
	private String clacUnit;
	
	/**
	 * 算费默认值
	 */
	private Integer clacVal;
	
	/**
     * 保障类型：和标签组的保障类型一致
     */
	private String protectionType;

	/**
	 * 模板类型  健康 寿险 年金
	 */
	private String templateType;
	
	/**
	 * 模板的上架产品数量
	 */
	@Transient
	private Integer productNum;
	
	/**
	 * 保险公司对比项集合
	 */
	private List<MarketContrastTemplateItem> companyItems;
	
	/**
	 * 产品框架对比项集合
	 */
	private List<MarketContrastTemplateItem> productItems;
	
	/**
	 * 保险责任对比项集合
	 */
	private List<MarketContrastTemplateItem> liabilityItems;
	
	/**
	 * 万能账户对比项集合
	 */
	private List<MarketContrastTemplateItem> investmentItems;
	
	/**
	 * 其它对比项集合
	 */
	private List<MarketContrastTemplateItem> otherItems;
	
	/**
	 * 创建者
	 */
	private String creator;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 修改者
	 */
	private String editor;

	/**
	 * 修改时间
	 */
	private Date editTime;

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public String getTemplateImagePath() {
		return templateImagePath;
	}

	public void setTemplateImagePath(String templateImagePath) {
		this.templateImagePath = templateImagePath;
	}

	public String getTemplateState() {
		return templateState;
	}

	public void setTemplateState(String templateState) {
		this.templateState = templateState;
	}

	public Integer getTemplateOrder() {
		return templateOrder;
	}

	public void setTemplateOrder(Integer templateOrder) {
		this.templateOrder = templateOrder;
	}

	public String getClacType() {
		return clacType;
	}

	public void setClacType(String clacType) {
		this.clacType = clacType;
	}

	public String getClacUnit() {
		return clacUnit;
	}

	public void setClacUnit(String clacUnit) {
		this.clacUnit = clacUnit;
	}

	public Integer getClacVal() {
		return clacVal;
	}

	public void setClacVal(Integer clacVal) {
		this.clacVal = clacVal;
	}


	public List<MarketContrastTemplateItem> getCompanyItems() {
		return companyItems;
	}

	public void setCompanyItems(List<MarketContrastTemplateItem> companyItems) {
		this.companyItems = companyItems;
	}

	public List<MarketContrastTemplateItem> getProductItems() {
		return productItems;
	}

	public void setProductItems(List<MarketContrastTemplateItem> productItems) {
		this.productItems = productItems;
	}

	public List<MarketContrastTemplateItem> getLiabilityItems() {
		return liabilityItems;
	}

	public void setLiabilityItems(List<MarketContrastTemplateItem> liabilityItems) {
		this.liabilityItems = liabilityItems;
	}

	public List<MarketContrastTemplateItem> getInvestmentItems() {
		return investmentItems;
	}

	public void setInvestmentItems(List<MarketContrastTemplateItem> investmentItems) {
		this.investmentItems = investmentItems;
	}

	public List<MarketContrastTemplateItem> getOtherItems() {
		return otherItems;
	}

	public void setOtherItems(List<MarketContrastTemplateItem> otherItems) {
		this.otherItems = otherItems;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public Date getEditTime() {
		return editTime;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	public String getTemplateGender() {
		return templateGender;
	}

	public void setTemplateGender(String templateGender) {
		this.templateGender = templateGender;
	}

	public String getProtectionType() {
		return protectionType;
	}

	public void setProtectionType(String protectionType) {
		this.protectionType = protectionType;
	}

	public Integer getTemplateAge() {
		return templateAge;
	}

	public void setTemplateAge(Integer templateAge) {
		this.templateAge = templateAge;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	public String getIsDesc() {
		return isDesc;
	}

	public void setIsDesc(String isDesc) {
		this.isDesc = isDesc;
	}

	public Integer getProductNum() {
		return productNum;
	}

	public void setProductNum(Integer productNum) {
		this.productNum = productNum;
	}

	public String getDisableTemplateImagePath() {
		return disableTemplateImagePath;
	}

	public void setDisableTemplateImagePath(String disableTemplateImagePath) {
		this.disableTemplateImagePath = disableTemplateImagePath;
	}

	public String getTemplateType() {
		return templateType;
	}

	public void setTemplateType(String templateType) {
		this.templateType = templateType;
	}
}
